package com.weikuang.fareast.adapter;

import android.text.Editable;
import android.text.TextWatcher;
import android.view.View;
import android.widget.EditText;

import com.weikuang.fareast.R;
import com.weikuang.fareast.bean.AddGoodsBean;
import com.weikuang.fareast.bean.OutGoodsBean;
import com.weikuang.fareast.bean.PrintOrderOutBean;

import cn.dlc.commonlibrary.ui.adapter.BaseRecyclerAdapter;


/**
 * 出货打印
 */
public class OutOrderAdapter extends BaseRecyclerAdapter<PrintOrderOutBean.OrderOutDetailsBean> {
    private OnRecyclerViewItemClickListener mOnItemClickListener;
    @Override
    public int getItemLayoutId(int viewType) {
        return R.layout.item_out_order_print;
    }

    public OutOrderAdapter() {

    }

    @Override
    public void onBindViewHolder(CommonHolder holder, int position) {
        PrintOrderOutBean.OrderOutDetailsBean bean = getItem(position);
        holder.getText(R.id.name).setText(bean.productName);
        holder.getText(R.id.nums).setText(bean.nums+"");
        holder.getText(R.id.tv_debtCount).setText(bean.debtCount+"");
        holder.getText(R.id.tv_supplementCount).setText(bean.supplementCount+"");
        holder.getText(R.id.tv_quantityCount).setText(bean.quantityCount+"");
       // holder.getText(R.id.ed_num).setText("0");



    }
    public  interface OnRecyclerViewItemClickListener {
        void onItemClick(View view, AddGoodsBean data, int position);
    }

    public void setOnItemClickListener(OnRecyclerViewItemClickListener listener) {
        this.mOnItemClickListener = listener;
    }
}
